import req from './request.js'

export const get = () => {
    return req.get('/api/config/get')
}

export const history = (param) => {
    return req.get('/api/config/history', {params: param})
}

export const set = (param) => {
    return req.post('/api/config/set', param)
}

export const back = (param) => {
    return req.post('/api/config/back', param)
}

export const routerList = () => {
    return req.get('/api/config/router')
}

export const historyDetail = (id) => {
    return req.get('/api/config/historyDetail', {params: {id}})
}

